import request from '@/utils/request'

// 查询钢丝列表
export function listSteelWire(query) {
  return request({
    url: '/mes/bm/steelWire/list',
    method: 'get',
    params: query
  })
}

// 查询钢丝详细
export function getSteelWire(id) {
  return request({
    url: '/mes/bm/steelWire/' + id,
    method: 'get'
  })
}

// 新增钢丝
export function addSteelWire(data) {
  return request({
    url: '/mes/bm/steelWire',
    method: 'post',
    data: data
  })
}

// 修改钢丝
export function updateSteelWire(data) {
  return request({
    url: '/mes/bm/steelWire',
    method: 'put',
    data: data
  })
}

// 删除钢丝
export function delSteelWire(id) {
  return request({
    url: '/mes/bm/steelWire/' + id,
    method: 'delete'
  })
}
